package com.youlai.boot.system.service;

import com.youlai.boot.system.model.entity.SysDianciSellRetrospect;
import com.youlai.boot.system.model.form.SysDianciSellRetrospectForm;
import com.youlai.boot.system.model.query.SysDianciSellRetrospectQuery;
import com.youlai.boot.system.model.vo.SysDianciSellRetrospectVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 销售追溯服务类
 *
 * @author liwenbing
 * @since 2025-04-09 14:27
 */
public interface SysDianciSellRetrospectService extends IService<SysDianciSellRetrospect> {

    /**
     *销售追溯分页列表
     *
     * @return
     */
    IPage<SysDianciSellRetrospectVO> getSysDianciSellRetrospectPage(SysDianciSellRetrospectQuery queryParams);

    /**
     * 获取销售追溯表单数据
     *
     * @param id 销售追溯ID
     * @return
     */
     SysDianciSellRetrospectForm getSysDianciSellRetrospectFormData(Long id);

    /**
     * 新增销售追溯
     *
     * @param formData 销售追溯表单对象
     * @return
     */
    boolean saveSysDianciSellRetrospect(SysDianciSellRetrospectForm formData);

    /**
     * 修改销售追溯
     *
     * @param id   销售追溯ID
     * @param formData 销售追溯表单对象
     * @return
     */
    boolean updateSysDianciSellRetrospect(Long id, SysDianciSellRetrospectForm formData);

    /**
     * 删除销售追溯
     *
     * @param ids 销售追溯ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteSysDianciSellRetrospects(String ids);

}
